package parts4.lesson53;

import java.util.Arrays;

public class Demo {

    public static void main(String[] args) {
        Person person[]=new Person[]{
                new Person("zhangshan",32),
                new Person("lisi",19),
                new Person("wangwu",76),
                new Person("chenhao",12)
        };

        Arrays.sort(person);

        System.out.println(Arrays.toString(person));

    }
}
